/**
 * 请求体：试题
 */
const CreateQuestionRequest = {
    title: {
        type: "string",
        required: true,
        description: "试题题干",
        example: "要考的问题？",
    },
    content: {
        type: "string",
        required: true,
        description: "试题题干",
        example: "考题详细内容",
    },
    e_tid: {
        type: "string",
        required: true,
        description: "考试类型",
        example: "周考1的id",
    },
    sid: {
        type: "string",
        required: true,
        description: "考题属于哪门课程的内容",
        example: "高级Node课程的id",
    },
    q_tid: {
        type: "string",
        required: true,
        description: "考题类型",
        example: "简答题的类型id",
    },
    answer: {
        type: "string",
        required: true,
        description: "试题题干",
        example: "正确答案是",
    },
};

/**
 * 请求体：试题类型
 */
const CreateQuestionType = {
    name: {
        type: "string",
        required: true,
        description: "试题类型名称",
        example: "填写一个属于什么类型的试题",
    },
};

/**
 * 查询参数：问题列表查询
 */
const QuestionListQuery = {
    sids: {
        type: "string",
        required: false,
        description: "已选择的课程id列表",
    },
    etid: {
        type: "string",
        required: false,
        description: "已选择的考试类型id",
    },
    qtid: {
        type: "string",
        required: false,
        description: "已选择的考试类型id",
    },
    pagenum: {
        type: "number",
        required: false,
        description: "当前分页数",
        example: 1,
    },
    pagesize: {
        type: "number",
        required: false,
        description: "每页的条数",
        example: 10,
    },
};

module.exports = {
    CreateQuestionRequest,
    CreateQuestionType,
    QuestionListQuery,
};
